#@layout()

#define css()
<link href="/js/completer/completer.css" rel='stylesheet' type='text/css'/>
#end

#define main()

<div>
    <div class="item">
        <h3 class="clr clr5">文章搜索</h3>
        <div class="item_detail">
            <div class="col-lg-4">
                <form action="/blog">
                    <div class="input-group">
                        <input type="text" class="form-control" id="searchStr" name="searchStr" placeholder="">
                        <span class="input-group-btn">
                                <button class="btn btn-default" type="submit">搜索!</button>
                            </span>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="item">
        <h3 class="clr clr4">个人文章</h3>

        #for(x : blogPage.getList())
        <div class="item_detail">
            <h5><a href="/blog/detail/#(x.id)">#(x.title)</a></h5>
            <dl class="project">
                <dt>关键字</dt>
                <dd>
                    #for(x1 : utilSplit(x.keyWord))
                    <span class="label label-default">#(x1)</span>
                    #end
                </dd>
                <div class="clearfix"></div>

                <dt>内容</dt>
                <dd>
                    <p style="min-width: 50%; max-width: 80%">
                        #(abbrStr(x.describe,200))
                    </p>
                </dd>
                <div class="clearfix"></div>

                <dt>发布时间</dt>
                <dd>#date(x.create_time,'yyyy-MM-dd')</dd>
            </dl>

            <div class="clearfix"></div>
        </div>
        #end

    </div>

    <div style="text-align: center">
        #@paginate(blogPage.pageNumber, blogPage.totalPage, "/blog/")
    </div>

    <div class="foot">
        <p>#(WEB_SITE_RECORD??'-')</p>
        <p><a href="http://www.miitbeian.gov.cn/" style="color: #333">#(IP_RECORD??'-')</a></p>
    </div>
</div>

#end

#define js()
<script src="/js/triggerMouse/triggerMouse.js" type="text/javascript"></script>
<script>
    $(document).ready(function () {
        rightPlugModle();
    });
</script>
#end